< previous page page_225 next page >

Page 225
(table continued from previous page)
PropertyDescription
CopiesThis property is filled in with a number that indicates the number of copies the user selected in the Copies text box in the Printer dialog box.
DefaultExtYou set this property prior to calling a File Open or File Save dialog box. This file extension is used to select files. If the user types in a file name without an extension, this extension is added to the file automatically prior to the FileName property being filled in.
DialogTitleYou can set the window title for the dialog box by filling in this property.
FileNameYou can set this property to the filename you want to appear as a default when the File Open or File Save dialog box is opened. This property is filled in with the name of the full path and filename after the user selects a file from the dialog box.
FileTitleThis property returns the filename without any path.
FilterThis property can be filled in with one or more masks to enable the user to select different types of files. For example
Text Files (*.txt)
Access Databases (*.mdb)

These filter options appear in a combo box at the bottom of the dialog box. When the user chooses one of these filters, only those files that have the appropriate extension are displayed in the dialog box.
FilterIndexSet this property to the filter in the Filter property to use as the default.
FlagsThis property is set to certain constants, depending on the type of dialog box youre calling. These options help you toggle certain options off and on when using the dialog box. Youll see examples of this property in this chapter.
InitDirSet this property to a valid directory on your system to have a File Open or File Save dialog box display files in that directory.
NameSet this property to the name you want to use for the control. The prefix youll use is dlg.
PrinterDefaultSet this property to True if you want to have the changes made in the Printer Setup dialog box change the Windows default printer.

 
< previous page page_225 next page >

If you like this book, buy it!